/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.src.ptit.javatraining.huynh.btvn2;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;

/**
 *
 * @author user
 */
public class Bai2 {

    public static void main(String[] args) {
        String s;
        try {
            FileReader f2 = new FileReader("Bai2.in");
            BufferedReader fin = new BufferedReader(f2);
            s = fin.readLine();
            fin.close();
            if (s.length() < 1) {
                throw new Exception(" Null !");
            }
            String s2in[] = s.split(" ");
            int m;
            m = s2in.length;
            File ft = new File("Bai2.out");
            ft.createNewFile();
            FileWriter f = new FileWriter(ft);
            BufferedWriter fout = new BufferedWriter(f);
            f.write(m + 48);
            fout.close();
        } catch (Exception e) {
            System.out.println("ERROR" + e);
        };
    }
}
